class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }
        "/"(view:"/admin/login.gsp")

        "/$controller/$id?/json"(action:"getEditorJson")
        "/$controller/$id?/save"(action:"saveModel")//, method: "PUT")
        "/$controller/editor/stencilset"(action: "getStencilset")
        "/$controller/create"(action: "newModel")
        "/$controller/modelList"(action: "modelList")
        "/$controller/deploy"(action: "deploy")
        "/$controller/start"(action: "startProcess")
        "500"(controller: "errors", action: "serverError")
        "302"(controller: "errors", action: "serverError")
    }
}
